package com.zq.repository;

import com.zq.entity.Blog;
import com.zq.entity.Tag;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @Author:任人渐疏
 * @Date:Created in 3:56 下午 2020/6/27
 * Update:true
 */
public interface BlogRepository extends JpaRepository<Blog,Integer>, JpaSpecificationExecutor<Blog> {

    @Query(value="select *  from blog where bid=?1",nativeQuery = true)
    Blog findByBlogId(Integer bid);
}
